<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script type="text/javascript" src="../js/vue.js"></script>
    <script type="text/javascript" src="../js/axios.min.js"></script>
    <script type="text/javascript" src="../js/vue-router.js"></script>
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <script type="text/javascript" src="../js/bootstrap.min.js"></script>
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="../css/animate.css">
</head>

<body>
    <div id="app" class="container">

    </div>

    <script>
        var login = {
            template: `<h1>登录组件</h1>`
        }
        var vm = new Vue({
            el: '#app',
            data: {},
            methods: {},
            render(createElements) { //createElements是一个方法，调用它能够把指定的模板组件渲染为html结构
                // return的结构会将页面中的el替换掉
                return createElements(login);
            },
        });
    </script>
</body>

</html>